package com.wz.project.sap.DN.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.sap.DN.mapper.ZflWmsGetDnMapper;
import com.wz.project.sap.DN.domain.ZflWmsGetDn;
import com.wz.project.sap.DN.service.IZflWmsGetDnService;
import com.wz.common.utils.text.Convert;

/**
 * 内外向交货单Service业务层处理
 * 
 * @author wz
 * @date 2022-09-14
 */
@Service
public class ZflWmsGetDnServiceImpl implements IZflWmsGetDnService 
{
    @Autowired
    private ZflWmsGetDnMapper zflWmsGetDnMapper;

    /**
     * 查询内外向交货单
     * 
     * @param VBELN 内外向交货单ID
     * @return 内外向交货单
     */
    @Override
    public ZflWmsGetDn selectZflWmsGetDnById(String VBELN)
    {
        return zflWmsGetDnMapper.selectZflWmsGetDnById(VBELN);
    }
    @Override
    public ZflWmsGetDn selectZflWmsGetDnById1(String VBELN)
    {
        return zflWmsGetDnMapper.selectZflWmsGetDnById1(VBELN);
    }
    /**
     * 查询内外向交货单列表
     * 
     * @param zflWmsGetDn 内外向交货单
     * @return 内外向交货单
     */
    @Override
    public List<ZflWmsGetDn> selectZflWmsGetDnList(ZflWmsGetDn zflWmsGetDn)
    {
        return zflWmsGetDnMapper.selectZflWmsGetDnList(zflWmsGetDn);
    }

    /**
     * 新增内外向交货单
     * 
     * @param zflWmsGetDn 内外向交货单
     * @return 结果
     */
    @Override
    public int insertZflWmsGetDn(ZflWmsGetDn zflWmsGetDn)
    {
        return zflWmsGetDnMapper.insertZflWmsGetDn(zflWmsGetDn);
    }

    /**
     * 修改内外向交货单
     * 
     * @param zflWmsGetDn 内外向交货单
     * @return 结果
     */
    @Override
    public int updateZflWmsGetDn(ZflWmsGetDn zflWmsGetDn)
    {
        return zflWmsGetDnMapper.updateZflWmsGetDn(zflWmsGetDn);
    }

    /**
     * 删除内外向交货单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZflWmsGetDnByIds(String ids)
    {
        return zflWmsGetDnMapper.deleteZflWmsGetDnByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除内外向交货单信息
     * 
     * @param VBELN 内外向交货单ID
     * @return 结果
     */
    @Override
    public int deleteZflWmsGetDnById(String VBELN)
    {
        return zflWmsGetDnMapper.deleteZflWmsGetDnById(VBELN);
    }

    @Override
    public int selectZflWmsGetDn(String format) {
        return zflWmsGetDnMapper.selectZflWmsGetDn(format);
    }
}
